<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:70:"/www/wwwroot/xunda-college/application/atxunda/view/user/question.html";i:1702272272;s:69:"/www/wwwroot/xunda-college/application/atxunda/view/index/header.html";i:1700617178;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>后台管理系统</title>
<link rel="stylesheet" href="__PUBLIC__css/pintuer.css?v=1.0">
<link rel="stylesheet" href="__PUBLIC__admin/admin.css">
<link rel="stylesheet" href="__PUBLIC__layui/css/layui.css">
<script src="__PUBLIC__js/jquery.js"></script>
<script src="__PUBLIC__js/pintuer.js"></script>
<script src="__PUBLIC__js/cookie.js"></script>
<script src="__PUBLIC__layui/layui.js"></script>
</head>
<style type="text/css">
	.refresh{width: 20px;height: 20px;float: right;margin:10px 20px;display: block;}
</style>
</head>
<?php if(request()->controller() != 'Index'): ?><img src="__PUBLIC__images/refresh.png" class="refresh" title="刷新"><?php endif; ?>
<script type="text/javascript">
	$('.refresh').click(function(){layer.msg('刷新中……');window.location.reload();})
</script>
<script type="text/javascript">
	function openwinx(url,name,w,h) {
		if(!w) w=screen.width-4;
		if(!h) h=screen.height-95;
		window.open(url,name,"width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
	}
</script>
<body>
	<div class="panel admin-panel">
		<form method="get" action="" id="listform">
			<div class="panel-head"><strong class="icon-reorder"> 问题列表</strong> </div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li>搜索：</li>
					<li>
						<select name="nav_id" class="input" style="width:150px; line-height:17px;" onchange="changeNav()"  id="nav">
							<option value="">请选择课程</option>
							<?php if(is_array($nav_data) || $nav_data instanceof \think\Collection): if( count($nav_data)==0 ) : echo "" ;else: foreach($nav_data as $key=>$nav): ?>
							<option value="<?php echo $nav['nav_id']; ?>" <?php if($nav['nav_id'] == $param['nav_id']): ?>selected=""<?php endif; ?>><?php echo $nav['nav_name']; ?></option>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					</li>
					<li>
						<input type="search" placeholder="关键词" name="kw" value="<?php echo $param['kw']; ?>" class="input" style="width:250px; line-height:17px;display:inline-block;"/>
					</li>
					<a href="javascript:void(0)" class="button border-main" onclick="changeNav()">搜索</a>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>
					<th>ID</th>
					<th>用户</th>
					<th style="text-align:left;">课程</th>
					<th>时间</th>
					<th>是否已回答</th>
					<th>操作</th>
				</tr>
				<?php if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$v): ?>
				<tr>
					<td><?php echo $v['id']; ?></td>
					<td><?php echo $v['know_nickname']; ?>/<?php echo $v['know_phone']; ?></td>
					<td align="left"><?php echo $v['nav_name']; ?><br/><?php echo $v['type_name']; ?><br/><?php echo $v['s_name']; ?><br/><?php echo $v['course_name']; ?></td>
					<td><?php echo $v['time']; ?></td>
					<td><?php echo !empty($v['answer'])?'是' : '<font color="#f00">否</font>'; ?></td>
					<td><div class="button-group"><a class="button border-main" href="<?php echo url('answer',['id' => $v['pid'] ?: $v['id'],'page'=>$param['page'],'kw'=>$param['kw']]); ?>"><span class="icon-edit"></span>点评</a></div></td>
				</tr>
				<?php endforeach; endif; else: echo "" ;endif; ?>
				<tr>
					<td colspan="7"><?php echo $data->render(); ?></td>
				</tr>
			</table>
		</form>
	</div>
</body></html>
<script>
	function changeNav(){
		$("#listform").submit();
	}
</script>